Using Tag Filter filters

Tag Filter collects nodes that have a specific tag assigned.

For example, with tag filters you can:

Creating a Tag Filter

To create a tag filter:

  1. In the Library press Alt and right-click Rendering > Object Sources and select Tag Filter.
  2. In the Properties set:Note that Kanzi filters lights in the same way it filters other nodes. When you create a filter that only includes a specific tag, the lights that light the tagged nodes are not included in the filter unless you add the tag to the light nodes. It is often more convenient to either:

To take the tag filter into use:

  1. In the Library > Rendering > Render Passes create a Group Render Pass and inside it create:
  2. In the Library select the Draw Objects Render Pass you created and in the Properties set the Object Source property to the filter you created.
  3. In the Project select the Scene node to which you want to apply the filter and in the Properties set the Render Pass property to the Group Render Pass whose child Draw Objects Render Pass uses as its object source the filter you created.

    Kanzi Studio renders the nodes collected by the filter.

Using a Tag Filter and tags to render only specific objects

To use a Tag Filter and tags to render only specific objects:

  1. Create a tag and assign it to the nodes you want to select for rendering. See Using tags.
  2. Create a Tag Filter and in the filter set the tags you want the filter to include and exclude. See Creating a Tag Filter.
  3. In the Library > Rendering > Render Passes create a Group Render Pass and inside it create:
  4. In the Library select the Draw Objects Render Pass you created and in the Properties set the Object Source property to the filter you created.
  5. In the Project select the Scene node to which you want to apply the filter and in the Properties set the Render Pass property to the Group Render Pass whose child Draw Objects Render Pass uses as its object source the filter you created.

    Kanzi Studio renders the nodes collected by the filter.

Using Tag Filter filters in the API

For details, see the KzuTagFilter class in the API reference.

See also

Using tags

Tutorial: Create reflections

Tutorial: Apply a stencil to 3D content

Using Contains Property Filter filters

Using Property Is Equal Filter filters

Using Object Type Filter filters

Using Sorting Filter filters

Filters